// Lang_16 [for loops].nova // The application class. class ForLoopsApp { // Application class's "main" function. public static void main( String[] args ) { // Iterate while 'loopIndex' is less than ten. for ( int loopIndex = 0; loopIndex < 10; loopIndex++ ) { Stream.writeLine( "for loop: " + Integer.toString( loopIndex ) ); } // Duplicate loop to demostrate that 'loopIndex' is isolated to each 'for' statement. for ( int loopIndex = 0; loopIndex < 10; loopIndex++ ) { Stream.writeLine( "for loop: " + Integer.toString( loopIndex ) ); } } }